// 校验邮箱
export const validate_email = (value) => {
  let reg = /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/;
  return reg.test(value);
}
// 校验密码
export const validate_password = (value) => {
  let reg = /^(?!\D+$)(?![^a-zA-Z]+$)\S{6,20}$/;
  return reg.test(value);
}
// 校验验证码
export const validate_code = (value) => {
  let reg = /^[a-z0-9]{6}$/;
  return reg.test(value);
}